<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:set var="path"  value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>管理用户</title>
</head>
<body>
  
	<table border="1" >
	<tr>
		<td>用户名</td>
		<td>用户密码</td>
		<td>用户性别</td>
		<td>用户号码</td>
		<td>用户地址</td>
		<td>操作</td>
	</tr>
	
		<c:forEach items="${page.list}" var="p">
		<tr>
			<td>${p.user_name}</td>
			<td>${p.user_password}</td>
			<td>${p.user_sex}</td>
			<td>${p.user_phone}</td>
			<td>${p.user_add}</td>
			<td>
			<a href="ToUpdate?user_id=${p.user_id}">修改</a>
			<a href="DodeleteUser?user_id=${p.user_id}">删除</a>
			</td>
		</tr>
		</c:forEach>
		<tr><td colspan="4">共有${page.totalCount}个用户，一共${page.totalPageNum}页
			<a href="tousermanage?pageNum=1">首页</a>
			<a href="tousermanage?pageNum=${page.prePageNum }">上一页</a>
			<a href="tousermanage?pageNum=${page.nextPageNum }">下一页</a>
			<a href="tousermanage?pageNum=${page.totalPageNum }">末页</a>
			</td>
			<td><a href="${path}/tologin">返回登录</a></td>
			</tr>
				</table>	
</body>
</html>